import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
// import vantui from './vantui';
import { Lazyload } from 'vant';
import { VueMasonryPlugin } from 'vue-masonry';
import 'vant/lib/index.css';
import 'video.js/dist/video-js.css'

import piniaPluginPersist from 'pinia-plugin-persist'
const store = createPinia()
store.use(piniaPluginPersist)

const app = createApp(App)

app.use(store)
app.use(router)
app.use(VueMasonryPlugin)
// 这是我们自己写的vue插件,用于循环添加 wot-design 按需引入组件
// app.use(vantui)
app.use(Lazyload);
app.use(Lazyload, {
    lazyComponent: true,
});

app.mount('#app')
